home *** CD-ROM | disk | FTP | other *** search
/ Champak 43 / Vol 43.iso / games / superdog.swf / scripts / DefineSprite_87_biggreen / frame_1 / DoAction.as
Encoding:
Text File  |  2007-06-25  |  785 b   |  24 lines

  1. stop();
  2. this.swapDepths(500 + _parent._parent.dep++);
  3. onEnterFrame = function()
  4. {
  5.    if(this.hitTest(_parent._parent.man.hitfk))
  6.    {
  7.       _parent._parent.s_point.start();
  8.       _parent._parent.powIco._visible = true;
  9.       _parent._parent.ability = "power";
  10.       _parent._parent.pTime = 0;
  11.       _parent._parent.tMax = 20;
  12.       _parent._parent.powIco._alpha = 100;
  13.       _parent._parent.flyNow = false;
  14.       _parent._parent.spdNow = false;
  15.       _parent._parent.movspd = 5;
  16.       _parent._parent.man.xiaoguo.gotoAndPlay("green");
  17.       _parent._parent.man.prs._visible = true;
  18.       _parent._parent.man.prs._xscale = _parent._parent.man._xscale;
  19.       _parent._parent.powerTime.gotoAndStop("str");
  20.       delete this.onEnterFrame;
  21.       this.play();
  22.    }
  23. };
  24.